package com.itboye.ihomebank.ttKey;


/**
 * Created by Administrator on 2016/9/6 0006.
 */
public class Key {

    private Long id;

    /**
     * 访问令牌
     */
    private String accessToken;

    /**
     * 锁id
     */
    private int lockId;

    /**
     * 钥匙id
     */
    private int keyId;

    /**
     * 是否是管理员
     */
    private boolean isAdmin;

    /**
     * 锁版本信息 json格式
     */
    private String lockVersion;

    /**
     * 锁名称
     */
    private String lockName;

    /**
     * 锁mac地址
     */
    private String lockMac;

    /**
     * 电量
     */
    private int battery;

    /**
     * 锁标志位
     */
    private int lockFlagPos;

    /**
     * 锁数据
     * 直接传就行
     */
    private String adminPs;

    /**
     * 锁数据
     * 直接传就行
     */
    private String unlockKey;

    /**
     * 管理码
     */
    private String adminKeyboardPwd;

    /**
     * 删除码
     */
    private String deletePwd;

    /**
     * 密码数据信息
     */
    private String pwdInfo;

    /**
     * 时间搓
     */
    private long timestamp;

    /**
     * aesKey
     */
    private String aesKeystr;

    /**
     * 开始时间
     */
    private long startDate;

    /**
     * 结束时间
     */
    private long endDate;

    public Key(Long id, String accessToken, int lockId, int keyId, boolean isAdmin, String lockVersion, String lockName, String lockMac, int battery,
            int lockFlagPos, String adminPs, String unlockKey, String adminKeyboardPwd, String deletePwd, String pwdInfo, long timestamp, String aesKeystr,
            long startDate, long endDate) {
        this.id = id;
        this.accessToken = accessToken;
        this.lockId = lockId;
        this.keyId = keyId;
        this.isAdmin = isAdmin;
        this.lockVersion = lockVersion;
        this.lockName = lockName;
        this.lockMac = lockMac;
        this.battery = battery;
        this.lockFlagPos = lockFlagPos;
        this.adminPs = adminPs;
        this.unlockKey = unlockKey;
        this.adminKeyboardPwd = adminKeyboardPwd;
        this.deletePwd = deletePwd;
        this.pwdInfo = pwdInfo;
        this.timestamp = timestamp;
        this.aesKeystr = aesKeystr;
        this.startDate = startDate;
        this.endDate = endDate;
    }

    public Key() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getLockId() {
        return this.lockId;
    }

    public void setLockId(int lockId) {
        this.lockId = lockId;
    }

    public String getLockVersion() {
        return this.lockVersion;
    }

    public void setLockVersion(String lockVersion) {
        this.lockVersion = lockVersion;
    }

    public String getAdminPs() {
        return this.adminPs;
    }

    public void setAdminPs(String adminPs) {
        this.adminPs = adminPs;
    }

    public String getUnlockKey() {
        return this.unlockKey;
    }

    public void setUnlockKey(String unlockKey) {
        this.unlockKey = unlockKey;
    }

    public String getAdminKeyboardPwd() {
        return this.adminKeyboardPwd;
    }

    public void setAdminKeyboardPwd(String adminKeyboardPwd) {
        this.adminKeyboardPwd = adminKeyboardPwd;
    }

    public String getDeletePwd() {
        return this.deletePwd;
    }

    public void setDeletePwd(String deletePwd) {
        this.deletePwd = deletePwd;
    }

    public String getPwdInfo() {
        return this.pwdInfo;
    }

    public void setPwdInfo(String pwdInfo) {
        this.pwdInfo = pwdInfo;
    }

    public long getTimestamp() {
        return this.timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public String getAesKeystr() {
        return this.aesKeystr;
    }

    public void setAesKeystr(String aesKeystr) {
        this.aesKeystr = aesKeystr;
    }

    public String getLockName() {
        return this.lockName;
    }

    public void setLockName(String lockName) {
        this.lockName = lockName;
    }

    public String getLockMac() {
        return this.lockMac;
    }

    public void setLockMac(String lockMac) {
        this.lockMac = lockMac;
    }

    public int getLockFlagPos() {
        return this.lockFlagPos;
    }

    public void setLockFlagPos(int lockFlagPos) {
        this.lockFlagPos = lockFlagPos;
    }

    public int getKeyId() {
        return this.keyId;
    }

    public void setKeyId(int keyId) {
        this.keyId = keyId;
    }

    public boolean isAdmin() {
        return this.isAdmin;
    }

    public void setAdmin(boolean isAdmin) {
        this.isAdmin = isAdmin;
    }

    @Override
    public String toString() {
        return "Key{" +
                "id=" + id +
                ", lockId=" + lockId +
                ", keyId=" + keyId +
                ", isAdmin=" + isAdmin +
                ", lockVersion='" + lockVersion + '\'' +
                ", lockName='" + lockName + '\'' +
                ", lockMac='" + lockMac + '\'' +
                ", lockFlagPos=" + lockFlagPos +
                ", adminPs='" + adminPs + '\'' +
                ", unlockKey='" + unlockKey + '\'' +
                ", adminKeyboardPwd='" + adminKeyboardPwd + '\'' +
                ", deletePwd='" + deletePwd + '\'' +
                ", pwdInfo='" + pwdInfo + '\'' +
                ", timestamp=" + timestamp +
                ", aesKeystr='" + aesKeystr + '\'' +
                '}';
    }

    public boolean getIsAdmin() {
        return this.isAdmin;
    }

    public int getBattery() {
        return this.battery;
    }

    public void setBattery(int battery) {
        this.battery = battery;
    }

    public String getAccessToken() {
        return this.accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public void setIsAdmin(boolean isAdmin) {
        this.isAdmin = isAdmin;
    }

    public long getStartDate() {
        return this.startDate;
    }

    public void setStartDate(long startDate) {
        this.startDate = startDate;
    }

    public long getEndDate() {
        return this.endDate;
    }

    public void setEndDate(long endDate) {
        this.endDate = endDate;
    }
}
